<div class="action-dialog-model-fixed-body">
    <div class="detailsBox">
        <h3>客户门店信息</h3>
            <div class="detaiTab">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                    <tr>
                        <td width="15%" align="right" class="bg">SD客户名称:</td>
								<td>
								${view.shopname}
								</td>
                        
                        <td width="15%" align="right" class="bg">门店成立日期:</td>
                        <td width="35%">
							${view.stupdate}
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店成立年限:</td>
                        <td>
                        <@select dataSouceType="storeyears" dataSouceFrom="CRM"  name="storyears"  value="${view.storyears}" renderonly="true"/>
                        </td>
                        <td width="15%" align="right" class="bg">门店电话:</td>
                        <td >
						<#if type=="detail" || approvalStatus=='UNDO'>
							${view.telephone}
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">办公地址:</td>
                        <td colspan='3'>
						<#if type=="detail" || approvalStatus=='UNDO'>
							<span id="bgdz"><@select dataSouceType="province" name="officeprovince"  id="select_provinceId" value="${view.officeprovince}" renderonly="true" />
                            &nbsp;&nbsp;<@select dataSouceType="city" dataSouceFrom="${view.officeprovince}" name="officecity"  id="select_cityId"  value="${view.officecity}"renderonly="true"/>
                            &nbsp;&nbsp;<@select dataSouceType="country" dataSouceFrom="${view.officecity}" name="officecounty"  id="select_districtId" value="${view.officecounty}" renderonly="true"/>
                            &nbsp;&nbsp;${view.officeaddress}</span>&nbsp;&nbsp;
                            <a href="javascript:void(0);" target="_blank" onclick="bgdzmap(this);">地图中查看</a>
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店地址:</td>
                        <td colspan='3'>
						<#if type=="detail" || approvalStatus=='UNDO'>
							<span id="mddz"><@select dataSouceType="province" name="shopprovince"  id="select_shop_provinceId" value="${view.shopprovince}" renderonly="true"/>
                            &nbsp;&nbsp;<@select dataSouceType="city" dataSouceFrom="${view.shopprovince}" name="shopcity"  id="select_shop_cityId" value="${view.shopcity}" renderonly="true" />
                            &nbsp;&nbsp;<@select dataSouceType="country" dataSouceFrom="${view.shopcity}" name="shopcounty"  id="select_shop_districtId" value="${view.shopcounty}" renderonly="true"/>
                            &nbsp;&nbsp;${view.shopaddress}</span> &nbsp;&nbsp;
                            <a href="javascript:void(0);" target="_blank" onclick="mddzmap(this)">地图中查看</a>
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">注册地:</td>
                        <td colspan="3">
						<#if type=="detail" || approvalStatus=='UNDO'>
							${view.registered}
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">工商查询是否异常 ：</td>
                        <td>
                        <@select dataSouceType="GS_QUREY_ABNERMAL" dataSouceFrom="CRM" name="gsQureyAbnermal"
                        id="gsQureyAbnermal" value="${view.gsQureyAbnermal}" renderonly="true"/>
                        </td>

                        <td width="15%" align="right" class="bg">员工人数/人：</td>
                        <td>
                            ${view.employeeNum} 人 
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">股东人数/人：</td>
                        <td>
                           ${view.shareholders} 人 
                        </td>
                        <td width="15%" align="right" class="bg">实际控制人姓名：</td>
                        <td>
                            ${view.controllername}
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店类型 ：</td>
                        <td>
                        <@select dataSouceType="shoptype" dataSouceFrom="CRM"  name="shoptype"  id="shoptype" value="${view.shoptype}" renderonly="true"/>
                            <span class="action-field-error" for="shoptype" style="color:red;"></span>
                        </td>
                        <td width="15%" align="right" class="bg">经营者与控制人是否同一人：</td>
                        <td>
                        <@select dataSouceType="iscontroller" dataSouceFrom="CRM"  name="iscontroller"  value="${view.iscontroller}" renderonly="true"/>
                            <span class="action-field-error" for="iscontroller" style="color:red;"></span>
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">营业面积/平方米：</td>
                        <td>
                            ${view.businessarea} 平方米 
                        </td>
                        <td width="15%" align="right" class="bg">营业时间：</td>
                        <td>
                            ${view.businesshours}
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">门店租金：</td>
                        <td>
                            ${view.shoprent} 元/月
                        </td>
                        <td width="15%" align="right" class="bg">水电费：</td>
                        <td>  
                            ${view.utilitybills} 元/月
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">固定工资支出：</td>
                        <td>
                            ${view.fixedsalary} 元/月
                        </td>
                        <td width="15%" align="right" class="bg">行业类别：</td>
                        <td>
                        <@select dataSouceType="vocation" name="vocation"  value="${view.vocation}" renderonly="true" />
                        </td>
                    </tr>
                    <tr>
                        <td width="15%" align="right" class="bg">主要经营产品：</td>
                        <td>
                            ${view.mainproducts}
                        </td>
                        <td width="15%" align="right" class="bg">门店存货情况(金额)：</td>
                        <td>
                            ${view.shoptock} 元
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">毛利率：</td>
                        <td>
                            ${view.grossProfitRate}% 
                        </td>
                        <td width="15%" align="right" class="bg">年净利润：</td>
                        <td>
                            ${view.annualNetProfit} 元
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">组织形式:</td>
                        <td colspan="3">
                            ${view.organizationForm}
                        </td>
                    </tr>

                    <tr>
                        <td width="15%" align="right" class="bg">营业执照注册号:</td>
                        <td colspan="3">
                        <#if type=="detail" || approvalStatus=='UNDO'>
                        	${view.blrNumber}
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" class="bg">应收情况(类别，金额，期限)： </td>
                        <td  colspan='3'>
                            ${view.receivable}
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">应付情况(类别，金额，期限)： </td>
                        <td  colspan='3' >
                            ${view.payables}
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">合作开始时间： </td>
                        <td >
                        ${(view.eacooperationdate?string('yyyy-MM-dd'))!''}
                        </td>
                        <td align="right" class="bg">营业执照名称： </td>
                        <td >
                        <#if type=="detail" || approvalStatus=='UNDO'>
                        	${view.licenceName}
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="bg">月均采购额(以近6个月金额为标准)(元)： </td>
                        <td>
                            ${view.eapurchaseamount} 元
                        </td>

                        <td align="right" class="bg">营业执照地址： </td>
                        <td>
                        <#if type=="detail" || approvalStatus=='UNDO'>
                        	<span id="yyzzdz">${view.licenceAddress}</span>&nbsp;&nbsp;
                            <a href="javascript:void(0);" target="_blank" onclick="yyzzdzmap(this)">地图中查看</a>
						<#else>
							******
						<@permission permissionName="custermerLookShopInfo">
							<a class="action-ajax-btn fr edit btn_blue" href="/customer/shop/rest/view_info?customerShopId=${view.customerShopId}">查看</a>
						</@permission>
						</#if>
                        </td>
                    </tr>
                    <tr id="all_amount">
                        <td align="right" class="bg">所有门店年销售额： </td>
                        <td>
                            ${view.totalAmount}
                        </td>
                    </tr><#--
                    <tr>
                    <td align="right" class="bg">是否已经获取采购数据： </td>
                    <td>
                        <input type="text"  id="isgetdata" value="${view.isgetdata}" size="15" name="isgetdata" class="action-valid-field" data-action-valid-rule="required;maxlength:15;reg:^\d*$|^(\d+(\.\d{1,2})*)$;" data-action-valid-msg-required="向怡亚通月均采购额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />  元
                        <span class="action-field-error" for="isgetdata" style="color:red;"></span>
                    </td>

                        <td align="right" class="bg">经营者姓名： </td>
                        <td>
                            <input type="text"  id="licenceAddress" value="${view.operatorname}"  size="50" name="operatorname" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="营业执照地址不能为空！"  autocomplete="off" />
                            <span class="action-field-error" for="licenceAddress" style="color:red;"></span>
                        </td>
                    </tr>-->
                    <tr>
                        <td align="right" class="bg">门店存货金额： </td>
                        <td>
                           ${view.storeinvamount}元
                        </td>

                        <#--<td align="right" class="bg">门店编码： </td>
                        <td>
                            <input type="text"  id="operatorname" value="${view.shopcode}" size="15" name="shopcode" class="action-valid-field" data-action-valid-rule="required;maxlength:50;" data-action-valid-msg-required="所有门店年销售额不能为空！" data-action-valid-msg-number="金额只能为数字" autocomplete="off" />
                            <span class="action-field-error" for="shopcode" style="color:red;"></span>
                        </td>-->
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="detaiTab">
                <h3>前三位供应商情况：  </h3>
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                    <tr>
                        <td width="15%"  align="right" class="bg">名称： </td>
                        <td width="23%">${view.suppliername1}</td>
                        <td width="15%"  align="right" class="bg">合作时间： </td>
                        <td width="15%"> ${view.suppliercooperationdate1}</td>
                        <td width="15%"  align="right" class="bg">月均合作金额： </td>
                        <td>${view.monthamount1} 元
                        </td>

                    </tr>
                    <tr>
                        <td align="right" class="bg">名称： </td>
                        <td>${view.suppliername2}</td>
                        <td align="right" class="bg">合作时间： </td>
                        <td>${view.suppliercooperationdate2}</td>
                        <td align="right" class="bg">月均合作金额： </td>
                        <td>${view.monthamount2} 元
                        </td>
                    </tr>
                    <tr>
                        <td width="15%"  align="right" class="bg">名称： </td>
                        <td>${view.suppliername3}</td>
                        <td align="right" class="bg">合作时间： </td>
                        <td>${view.suppliercooperationdate3}</td>
                        <td align="right" class="bg">月均合作金额： </td>
                        <td>${view.monthamount3} 元
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="detaiTab">
                <h3>近六个月营业额情况：  </h3>
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tbody>

                    <tr>
                        <td width="15%"  align="right" class="bg">第一个月： </td>
                        <td width="23%">${view.turnover1th} 元
                        </td>
                        <td width="15%"  align="right" class="bg">第二个月： </td>
                        <td width="15%">${view.turnover2th} 元
                        </td>
                        <td width="15%"  align="right" class="bg">第三个月： </td>
                        <td>${view.turnover3th} 元
                        </td>
                    </tr>
                    <tr>
                        <td width="15%"  align="right" class="bg">第四个月： </td>
                        <td>${view.turnover4th} 元
                        </td>
                        <td width="15%"  align="right" class="bg">第五个月： </td>
                        <td>${view.turnover5th} 元
                        </td>
                        <td width="15%"  align="right" class="bg">第六个月： </td>
                        <td>${view.turnover6th} 元
                        </td>
                    </tr>
                    <tr>
                        <td  align="left" class="bg">门店名下（非实际控制人）的资产负债情况： </td>
                        <td colspan="5">${view.assetsliabilities} </td>

                    </tr>
                    </tbody>
                </table>
            </div>
    </div>

    </div>
    
<script type="text/javascript">
function bgdzmap(obj){
	var location = $('#bgdz').html().replace(/[\r\n &nbsp;]/g,'');
	obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
}

function mddzmap(obj){
	var location = $('#mddz').html().replace(/[\r\n &nbsp;]/g,'');
	obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
}

function yyzzdzmap(obj){
	var location = $('#yyzzdz').html().replace(/[\r\n &nbsp;]/g,'');
	obj.href='http://api.map.baidu.com/geocoder?address='+location+'&output=html&src=';
}

</script>
